<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:sinox="http://ui.sinosoft.com/element">

	<p:tabView onTabChange="show()" style="88%; height:98%;width:100%;">
		<p:tab title="涉案信息">
			<h:form>
				<p:commandButton id="btncase" value="添加案件详情" type="button"
					style="width:100%;" />
				<p:menu widgetVar="themeMenu" type="tiered" position="dynamic"
					trigger="btncase" my="left top" at="left bottom">
					<p:menuitem value="报案人/受害人"
						onstart="btnAction('#{commonContentViewBean.id}','报警人信息','750','640','icons/cog_add.png','add','duty-case-scene','case_barshrdj');"
						icon="ui-icon ui-icon-refresh" />
					<p:submenu label="损失物品" icon="ui-icon ui-icon-newwin">
						<p:menuitem value="通讯工具"
							onstart="btnAction('#{commonContentViewBean.id}','损失物品信息','780','640','icons/cog_add.png','add','duty-case-scene','sswp_txgj');"
							icon="ui-icon ui-icon-disk" />
						<p:menuitem value="交通工具"
							onstart="btnAction('#{commonContentViewBean.id}','交通工具','780','640','icons/cog_add.png','add','duty-case-scene','sswp_jtgj');"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="证件" update="messages"
							onstart="btnAction('#{commonContentViewBean.id}','证件','780','600','icons/cog_add.png','add','duty-case-scene','sswp_sszj');"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="家用电器"
							onstart="btnAction('#{commonContentViewBean.id}','家用电器','750','500','icons/cog_add.png','add','duty-case-scene','sswp_jydq');"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="首饰文物" update="messages"
							onstart="btnAction('#{commonContentViewBean.id}','首饰文物','780','600','icons/cog_add.png','add','duty-case-scene','sswp_ssww');"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="货币有价证券"
							onstart="btnAction('#{commonContentViewBean.id}','货币有价证券','800','600','icons/cog_add.png','add','duty-case-scene','sswp_hdyjzj');"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="枪支弹药"
							onstart="btnAction('#{commonContentViewBean.id}','枪支弹药','900','640','icons/cog_add.png','add','duty-case-scene','sswp_qzdy');"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="一般物品"
							onstart="btnAction('#{commonContentViewBean.id}','一般物品','750','640','icons/cog_add.png','add','duty-case-scene','sswp_yblx');"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
					</p:submenu>
					<p:menuitem value="失踪人员"
						onstart="btnAction('#{commonContentViewBean.id}','失踪人员','850','560','icons/cog_add.png','add','duty-case-scene','psn_disperson_enrol');"
						icon="ui-icon ui-icon-refresh" />
					<p:menuitem value="被盗抢机动车"
						onstart="btnAction('#{commonContentViewBean.id}','被盗抢机动车','750','640','icons/cog_add.png','add','duty-case-scene','bdqcl-view');"
						icon="ui-icon ui-icon-refresh" />
					<p:menuitem value="作案手段"
						onstart="btnAction('#{commonContentViewBean.id}','作案手段','620','500','icons/cog_add.png','add','duty-case-scene','case_i_resort');"
						icon="ui-icon ui-icon-refresh" />
					<p:menuitem value="作案特点"
						onstart="btnAction('#{commonContentViewBean.id}','作案特点','620','500','icons/cog_add.png','add','duty-case-scene','case_i_peculiarity');"
						icon="ui-icon ui-icon-refresh" />
					<p:menuitem value="作案工具"
						onstart="btnAction('#{commonContentViewBean.id}','作案工具','620','500','icons/cog_add.png','add','duty-case-scene','case_i_instrument');"
						icon="ui-icon ui-icon-refresh" />
					<p:menuitem value="嫌疑对象"
						onstart="btnAction('#{commonContentViewBean.id}','嫌疑对象','750','640','icons/cog_add.png','add','duty-case-scene','case_i_suspicion');"
						icon="ui-icon ui-icon-refresh" />
					<p:menuitem value="涉案嫌疑人" icon="ui-icon ui-icon-refresh"
						onstart="btnAction('#{commonContentViewBean.id}','涉案嫌疑人信息','740','500','icons/cog_add.png','add','duty-case-scene','case_i_xyr');" />
					<p:menuitem value="涉案团伙" icon="ui-icon ui-icon-refresh"
						onstart="btnAction('#{commonContentViewBean.id}','涉案团伙','750','640','icons/cog_add.png','add','duty-case-scene','case_ford_criminal');" />
					<p:menuitem value="涉案单位" icon="ui-icon ui-icon-refresh"
						onstart="btnAction('#{commonContentViewBean.id}','涉案单位','750','640','icons/cog_add.png','add','duty-case-scene','case_ford_unit_data');" />
					<p:submenu label="缴获物品" icon="ui-icon ui-icon-extlink">
						<p:menuitem value="通讯工具" icon="ui-icon ui-icon-disk"
							onstart="btnAction('#{commonContentViewBean.id}','通讯工具','900','680','icons/cog_add.png','add','duty-case-scene','jhwp_txgj');" />
						<p:menuitem value="交通工具" icon="ui-icon ui-icon-arrowrefresh-1-w"
							onstart="btnAction('#{commonContentViewBean.id}','交通工具','750','640','icons/cog_add.png','add','duty-case-scene','jhwp_jtgj');" />
						<p:menuitem value="证件" icon="ui-icon ui-icon-arrowrefresh-1-w"
							onstart="btnAction('#{commonContentViewBean.id}','证件','780','640','icons/cog_add.png','add','duty-case-scene','jhwp_sszj');" />
						<p:menuitem value="家用电器" icon="ui-icon ui-icon-arrowrefresh-1-w"
							onstart="btnAction('#{commonContentViewBean.id}','家用电器','780','600','icons/cog_add.png','add','duty-case-scene','jhwp_jydq');" />
						<p:menuitem value="首饰文物" icon="ui-icon ui-icon-arrowrefresh-1-w"
							onstart="btnAction('#{commonContentViewBean.id}','首饰文物','900','600','icons/cog_add.png','add','duty-case-scene','jhwp_ssww');" />
						<p:menuitem value="货币有价证券" icon="ui-icon ui-icon-arrowrefresh-1-w"
							onstart="btnAction('#{commonContentViewBean.id}','有价货币证劵','900','600','icons/cog_add.png','add','duty-case-scene','jhwp_hbyjzj');" />
						<p:menuitem value="枪支弹药" icon="ui-icon ui-icon-arrowrefresh-1-w"
							onstart="btnAction('#{commonContentViewBean.id}','枪支弹药','900','600','icons/cog_add.png','add','duty-case-scene','jhwp_qzdy');" />
						<p:menuitem value="一般物品" icon="ui-icon ui-icon-arrowrefresh-1-w"
							onstart="btnAction('#{commonContentViewBean.id}','一般物品','750','640','icons/cog_add.png','add','duty-case-scene','jhwp_ybwp');" />
					</p:submenu>
				</p:menu>

			</h:form>
			<fieldset style="width: 90%; height: 70%;">
			
			<ui:decorate
				template="/layout/iteration/tree/sino-tree—cjjj-template.xhtml">
				<ui:param name="compViewBean"
					value="#{commonContentViewBean.allView[1]}" />
				<ui:param name="compId"
					value="#{commonContentViewBean.id}_righttree" />
			</ui:decorate>
			
			</fieldset>
		</p:tab>
		<c:choose>
			<c:when
				test="#{commonContentViewBean.allView[0].casestate eq 'id_c_ajzt.c.1'}">
				<p:tab title="案件流转">
					<fieldset style="width: 90%; height: 80%;"><legend>相关文书</legend>
					<div id="tab_case_liuzhuan" style="overflow: auto; height: 100%;">
					<div eventstatus="false" class="sample-container"
						style="display: block;">
					<div id="casejcjdjb" style="display: none"><a href="#"
						onclick="writAction('#{commonContentViewBean.id}','v3.caseother.right.jcjdjb.show','850','560','icons/cog_add.png','edit','duty-case-scene','case_jcjdjb_add','');">接处警登记表</a>
					</div>
					<script type="text/javascript">
								//$(document).ready(function(){
						        //    $("#browser1").treeview();
						        //    $("#browser2").treeview();
						        //});
		
								function show() { 
									//var formss = window.document.getElementsByName('#{commonContentViewBean.allView[0].id}_form');
									//var disposeidea = window.document.getElementById(formss[0].id+":disposeidea_name").value;
									//var disposeidea = '#{commonContentViewBean.allView[0].disposeidea}';
									
									if(disposeidea !=''){
										var divobj = window.document.getElementById('casejcjdjb');
										divobj.style.display = 'block';
									}
								}
							</script></div>
					</div>
					</fieldset>
				</p:tab>
				<p:tab title="证据笔录">
					<fieldset style="width: 90%; height: 80%;"><legend>相关信息</legend>

					<div eventstatus="false" class="sample-container"
						style="display: block;"><p:commandButton value="增加证据笔录"
						type="button" style="width:100%;" />
					<div style="overflow: auto; height: 100%;"></div>
					</div>
					</fieldset>
				</p:tab>
			</c:when>
		</c:choose>
	</p:tabView>
</ui:composition>